package com.xiamaliu;

import com.xiamaliu.impl.JavaCourseFactory;
import com.xiamaliu.impl.PythonCourseFactory;

public class Test {
    public static void main(String[] args) {
        ICourseFactory factory = new PythonCourseFactory();
        ICourse course = factory.create();
        course.record();

        factory = new JavaCourseFactory();
        course = factory.create();
        course.record();
    }
}
